package com.odobenus.sample.bean;

import org.springframework.stereotype.Component;

import com.odobenus.client.anno.OdobenusFile;
import com.odobenus.client.anno.OdobenusItem;

@Component
@OdobenusFile("zk.properties")
public class ZKConfig {

	@OdobenusItem("zk.host")
	private String host;
	@OdobenusItem("zk.port:2181")
	private Integer port;
	public String getHost() {
		return host;
	}
	public void setHost(String host) {
		this.host = host;
	}
	public Integer getPort() {
		return port;
	}
	public void setPort(Integer port) {
		this.port = port;
	}
	@Override
	public String toString() {
		return "ZKConfig [host=" + host + ", port=" + port + "]";
	}
	
}
